﻿@using Abp.Timing
@using Abp.Web.Security.AntiForgery
@using Mt.Site.Web
@using CultureHelper = Mt.Site.Core.Localization.CultureHelper
@using Mt.Site.Web.Components
@using Abp.Configuration.Startup

@model Mt.Site.Web.Areas.B.Models.Account.LoginFormViewModel
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
@inject IMultiTenancyConfig MultiTenancyConfig
@{
    Layout = null;
    AbpAntiForgeryManager.SetCookie(Context);
}

<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="no-js ie6" lang="@CultureHelper.CurrentUICultureName"> <![endif]-->
<!--[if IE 7 ]><html class="no-js ie7" lang="@CultureHelper.CurrentUICultureName"> <![endif]-->
<!--[if IE 8 ]><html class="no-js ie8" lang="@CultureHelper.CurrentUICultureName"> <![endif]-->
<!--[if IE 9 ]><html class="no-js ie9" lang="@CultureHelper.CurrentUICultureName"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html class="no-js" lang="@CultureHelper.CurrentUICultureName">
<!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=1200,initial-scale=0.3, minimum-scale=0.3, maximum-scale=1.0, user-scalable=yes">
    @await Component.InvokeAsync(typeof(BackEndSeoViewComponent))
    <link rel="shortcut icon" href="~/favicon.ico" />
    <link href="~/lib/bootstrap/css/bootstrap.css" rel="stylesheet" media="screen" type="text/css">
    <link href="/content/mt/css/module.css" rel="stylesheet" type="text/css">


    <script type="text/javascript">
        var abp = abp || {}; abp.appPath = '@ApplicationPath';
    </script>
    <!--[if lt IE 9]>
        <script src="~/libs/respond/respond.min.js"></script>
        <script src="~/libs/excanvas/excanvas.min.js"></script>
    <![endif]-->

</head>

<body>
    <div class="wrapper" id="wrapper">
        <div class="login-box">
            <div class="login-main">
                <div class="login-txt">蒙特网站信息管理平台</div>
                @*<img src="/content/images_N/logo.png" class="logo" />*@
            <form class="frm-login-box" asp-action="Login" method="post" onsubmit="return false">
                <input type="hidden" name="returnUrl" value="@ViewBag.ReturnUrl" />
                <input type="hidden" name="returnUrlHash" />
                <input type="hidden" name="ss" value="@ViewBag.SingleSignIn" />
                @*<h4 class="lev-tit"></h4> *@

                @if (ViewBag.IsMultiTenancyEnabled)
                {
                    <div class="form-group">
                        <input type="text" autocomplete="off" name="tenancyName" placeholder="@L("TenancyName")" maxlength="10" class="form-control" id="tenancyName" />
                    </div>
                }
                <div class="form-group">
                    <input type="text" autocomplete="off" placeholder="@L("UserNameOrEmail")" name="usernameOrEmailAddress" value="@(Model.UserNameOrEmailAddress ?? "")" required data-placeholder='请输入用户名' class="form-control" id="userName" />
                </div>
                <div class="form-group">
                    <input type="password" autocomplete="off" placeholder="@L("Password")" name="password" class="form-control" id="userPwd" value="@(Model.Password ?? "")" />
                </div>
                <div class="form-group frm-vcode" style="display:none;">
                    <input type="text" value="请输入右侧验证码" class="form-control" id="userVcode" />
                    <a class="vcode-imgs"><img src="/content/images_N/vcode.jpg" alt="" /></a>
                </div>
                <div class="frm-btn-box">
                    <button class="btn-submit" type="submit">登录</button>
                </div>
            </form>
                <div class="login-ft">
                    @*<div class="copy">© 2000-@Clock.Now.Year 杭州蒙特信息技术有限公司版权所有</div>
                        <div class="bt">Mountor集成OA系统是蒙特自主知识产权的软件产品</div>*@
                    <div class="copy">
                        客服热线：0571-88230881 15158184365
                    </div>
                </div>
            </div>
        </div>
    </div>


    <script src="~/lib/jquery/jquery-2.x.min.js"></script>
    <script src="~/lib/jquery/jquery-migrate.min.js"></script>
    <script src="~/lib/Abp/Framework/scripts/abp.js"></script>
    <script src="~/lib/Abp/Framework/scripts/libs/abp.jquery.js"></script>
    <script src="~/content/mt/scripts/consts.js"></script>
    <script type="text/javascript">
        abp.localization.defaultSourceName = '@LocalizationSourceName';
    </script>
    <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
    <script src="~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)&minify=true" type="text/javascript"></script>
    <script src="~/lib/jquery-validation/js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="@AppWebConsts.JQuery_Validation_Localization">
    </script>
    <script src="~/lib/jsencrypt/consts.js"></script>
    <script src="~/lib/jsencrypt/jsencrypt.min.js"></script>
    <script src="~/content/Areas/B/Views/Account/Login.js" asp-append-version="true"></script>
    <script type="text/javascript">
        var backBaseUrl = '@Mt.Site.MtSiteConsts.BackgroundBaseUrl.Url_RemoveSlash';
        abp.backUrl = abp.appPath + backBaseUrl;
        abp.backUrlEndWithSlash = (backBaseUrl ? (abp.backUrl + '/') : abp.appPath);

        if (CurrentPage) {
            CurrentPage.init();
        }
    </script>
    <script type="text/javascript">
        // 判断浏览器
        function myBrowser() {
            var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
            var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器
            var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器
            var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
            var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
            var isFF = userAgent.indexOf("Firefox") > -1; //判断是否Firefox浏览器
            var isChrome = userAgent.indexOf("Chrome") > -1; //判断是否Chrome浏览器

            if (isFF) {
                return true;
            } else if (isChrome) {
                return true;
            } else {
                return false;
            }
        }//myBrowser() end
        var browserType = myBrowser();
        if (browserType) {
            $('#compatibleBody').hide();
        } else {
            $('#compatibleBody').show();
        }

        // 点击稍后安装
        $('#compatibleBody .btn-wait').click(function (event) {
            $('#compatibleBody').hide();
        });
    </script>
</body>

</html>

